<?php

class Application_Model_DbTable_Zhuanti extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_zhuanti';

	public function addNewZhuanTi($data){
		$this->insert($data);
	}
	
	public function getAllZhuanTi(){
		$res=$this->fetchAll();
		return $res;
	}
	
	public function getZhuanTiById($id){
		$res=$this->fetchRow("id='".$id."'");
		return $res;
	}
}

